﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuVertical.ascx.cs" Inherits="Controls_MenuVertical" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div class="title_menu">Danh mục tìm kiếm</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <ul id="menu">
            <li><a href="Default.aspx"><img src="/images/icon_menu.gif" /><span>Trang chủ</span></a></li>
            <li><a href="Default.aspx?act=gioi-thieu"><img src="/images/icon_menu.gif" /><span>Giới thiệu</span></a></li>
            <asp:DataList ID="dtlDanhMuc" runat="server" Width="100%" onitemcommand="dtlDanhMuc_ItemCommand" >
                <ItemTemplate>
                    <li><img src="/images/icon_menu.gif" />
                        <asp:Button ID="btnDanhMuc" CommandArgument='<%# Eval("IDDanhMuc") %>' Text='<%# Eval("TenDanhMuc") %>' runat="server" CssClass="btnDanhMuc" />
                        <ul>
                            <asp:DataList ID="dtlDanhMucCon" runat="server" Width="100%">
                                <ItemTemplate>
                                    <li><a href='ChiTiet.aspx?id=<%# Eval("IDDanhMucCon") %>&ten=<%# Eval("TenTat") %>'><%# Eval("TenDanhMucCon") %></a></li>
                                </ItemTemplate>
                            </asp:DataList>
                        </ul>
                    </li>
                </ItemTemplate>            
            </asp:DataList>
            <li><a href="Default.aspx?act=tin-tuc"><img src="/images/icon_menu.gif" /><span>Tin tức</span></a></li>
            <li class="end"><a href="Default.aspx?act=lien-he"><img src="/images/icon_menu.gif" /><span>Liên hệ</span></a></li>
        </ul>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="dtlDanhMuc" />
    </Triggers>
</asp:UpdatePanel> 